package com.base.caselib;

import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.base.caselib.databinding.ActivityCaseupBinding;
import com.base.caselib.widget.EditTextCustom;
import com.base.commonlib.base.CBaseBarMvpActivity;
import com.base.commonlib.event.AddressEvent;
import com.base.commonlib.utils.RxBus2;

import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Consumer;

/**
 * Created by weikailiang on 2019/11/1.
 */
@Route(path = "/case/up")
public class CaseUpActivity extends CBaseBarMvpActivity{
    private ActivityCaseupBinding mBinding;
    @Override
    protected int getLayoutResource() {
        return R.layout.activity_caseup;
    }

    @Override
    protected void init() {
        super.init();
        mBinding = (ActivityCaseupBinding) mRootBinding;
        setBackNavigation();
        setBarTitle("案件上报");
    }

    @Override
    protected void start() {
        mBinding.llNormal.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ARouter.getInstance().build("/case/case2add")
                        .withString("ID","ylp9W4bF9ykafcByq8R")
                        .withInt("num",2)
                        .withString("type","1")
                        .navigation();
            }
        });
        mBinding.llEasy.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ARouter.getInstance().build("/case/case2add")
                        .withString("ID","8a4820146ab64a15a199e1c12c49e0a3")
                        .withInt("num",1)
                        .withString("type","2")
                        .navigation();
            }
        });

    }
}
